package com.tianma315.admin.common.exception;

public class HtmlCodeException extends RuntimeException{
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {

        this.message = message;
    }

    public HtmlCodeException(String message) {
        String html = "<html xmlns:shiro='http://www.w3.org/1999/xhtml' xmlns:th='http://www.w3.org/1999/xhtml'>" +
                "<meta charset='utf-8'>" +
                "<link href='/css/bootstrap.min.css?v=3.3.6' rel='stylesheet'>" +
                "<body class='gray-bg'>" +
                "<div class='alert alert-danger text-center'>";

        html += message;

        html+= "</div>" +
                "<div th:include='include :: footer'></div>" +
                "</body>" +
                "</html>";

        this.message = html;
    }
}
